diff options
author | zotlabs <mike@macgirvin.com> | 2019-01-29 15:14:49 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2019-01-29 15:14:49 -0800 |
commit | b15421826d91d7344ad28a16f0be047c191d5ec4 (patch) | |
tree | 845e7dc1ab631fb7585b91221fac28cdb66334a4 /Zotlabs/Daemon | |
parent | 753f137575674a4fb1cfb16753baced6ed21145a (diff) | |
download | volse-hubzilla-b15421826d91d7344ad28a16f0be047c191d5ec4.tar.gz volse-hubzilla-b15421826d91d7344ad28a16f0be047c191d5ec4.tar.bz2 volse-hubzilla-b15421826d91d7344ad28a16f0be047c191d5ec4.zip |
cache embeds in the background on initial storage rather than on first access
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r-- | Zotlabs/Daemon/Cache_embeds.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Cache_embeds.php b/Zotlabs/Daemon/Cache_embeds.php new file mode 100644 index 000000000..08088abd6 --- /dev/null +++ b/Zotlabs/Daemon/Cache_embeds.php @@ -0,0 +1,27 @@ +<?php /** @file */ + +namespace Zotlabs\Daemon; + + +class Cache_embeds { + + static public function run($argc,$argv) { + + if(! $argc == 2) + return; + + $c = q("select body from item where id = %d ", + dbesc(intval($argv[1])) + ); + + if(! $c) + return; + + $item = $c[0]; + + // bbcode conversion by default processes embeds that aren't already cached. + // Ignore the returned html output. + + bbcode($item['body']); + } +} |