Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_emoticate
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31269/plugins/serendipity_event_emoticate
Modified Files:
Tag: branch-smarty
serendipity_event_emoticate.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_emoticate.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_emoticate/serendipity_event_emoticate.php,v
retrieving revision 1.10.2.1
retrieving revision 1.10.2.2
diff -u -d -r1.10.2.1 -r1.10.2.2
--- serendipity_event_emoticate.php 15 Sep 2004 17:10:12 -0000 1.10.2.1
+++ serendipity_event_emoticate.php 22 Sep 2004 10:58:57 -0000 1.10.2.2
@@ -126,6 +126,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 = &$eventData[$temp['element']];
|