Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysideup committed Nov 12, 2022
1 parent a5ac584 commit e77f573
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Extensions/SimpleTemplateCachingSiteConfigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ public static function update_cache_key(?string $className = '')
UPDATE "SiteConfig"
SET
"CacheKeyLastEdited" = \'' . DBDatetime::now()->Rfc2822() . '\',
"ClassNameLastEdited" = \'' . addslashes($className). '\'
"ClassNameLastEdited" = \'' . addslashes((string) $className). '\'
WHERE ID = '.$obj->ID.'
LIMIT 1
;');
}
if($obj->RecordCacheUpdates) {
Expand Down

0 comments on commit e77f573

Please sign in to comment.