Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_xhtmlcleanup
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31269/plugins/serendipity_event_xhtmlcleanup
Modified Files:
Tag: branch-smarty
serendipity_event_xhtmlcleanup.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_xhtmlcleanup.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_xhtmlcleanup/serendipity_event_xhtmlcleanup.php,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -d -r1.6 -r1.6.2.1
--- serendipity_event_xhtmlcleanup.php 9 Aug 2004 08:49:08 -0000 1.6
+++ serendipity_event_xhtmlcleanup.php 22 Sep 2004 10:59:00 -0000 1.6.2.1
@@ -85,6 +85,10 @@
switch($event) {
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'];
$this->cleanup_tag = 'IMG';
|