Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_bbcode
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31269/plugins/serendipity_event_bbcode
Modified Files:
Tag: branch-smarty
serendipity_event_bbcode.php
Log Message:
Allow to cache entire entries.
Needs some further work to maybe remove plugin references from _functions completely.
Possibly add a hook to rebuild entries on certain events (like when a new textile/bbcode etc. plugin is added)
Index: serendipity_event_bbcode.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_bbcode/serendipity_event_bbcode.php,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -u -d -r1.7.2.1 -r1.7.2.2
--- serendipity_event_bbcode.php 15 Sep 2004 08:30:22 -0000 1.7.2.1
+++ serendipity_event_bbcode.php 22 Sep 2004 10:58:57 -0000 1.7.2.2
@@ -182,6 +182,10 @@
case 'frontend_display':
foreach ($this->markup_elements as $temp) {
+ if (isset($eventData['is_cached']) && $eventData['is_cached'] && ($temp['element'] == 'body' | $temp['element'] == 'extended')) {
+ continue;
+ }
+
if (serendipity_db_bool($this->get_config($temp['name'], true)) && isset($eventData[$temp['element']])) {
$element = $temp['element'];
$eventData[$element] = $this->bbcode($eventData[$element]);
|