Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1044110
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jun 24, 11:27 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Thu, Jun 26, 11:27 PM (7 h, 41 m)
Engine
blob
Format
Raw Data
Handle
675294
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/unlabeled/unlabeled-1.2.10/kernel/units/admin/admin_events_handler.php
===================================================================
--- branches/unlabeled/unlabeled-1.2.10/kernel/units/admin/admin_events_handler.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.2.10/kernel/units/admin/admin_events_handler.php (revision 6109)
@@ -0,0 +1,27 @@
+<?php
+
+class AdminEventsHandler extends InpDBEventHandler {
+
+ function OnResetModRwCache(&$event)
+ {
+ $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName LIKE "mod_rw%"');
+ }
+
+ function OnResetCMSMenuCache(&$event)
+ {
+ $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "cms_menu"');
+ }
+
+ function OnResetSections(&$event)
+ {
+ $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "sections_parsed"');
+ }
+
+ function OnResetConfigsCache(&$event)
+ {
+ $this->Conn->Query('DELETE FROM '.TABLE_PREFIX.'Cache WHERE VarName = "config_files" OR VarName = "configs_parsed"');
+ }
+
+
+
+}
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.2.10/kernel/units/admin/admin_events_handler.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.2
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Event Timeline
Log In to Comment