security updates
have to check views and entityreference for custom patches
This commit is contained in:
52
sites/all/modules/contrib/dev/ctools/includes/css-cache.inc
Normal file
52
sites/all/modules/contrib/dev/ctools/includes/css-cache.inc
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Custom cache implementation for the CTools CSS cache.
|
||||
*/
|
||||
|
||||
class CToolsCssCache implements DrupalCacheInterface {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function clear($cid = NULL, $wildcard = FALSE) {
|
||||
// Only clear the caches if the wildcard is set, this ensures that the cache
|
||||
// is only cleared when the full caches are cleared manually (eg by invoking
|
||||
// drupal_flush_all_caches()), and not on a cron run.
|
||||
// @see drupal_flush_all_caches()
|
||||
// @see system_cron()
|
||||
if ($wildcard) {
|
||||
ctools_include('css');
|
||||
ctools_css_flush_caches();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function get($cid) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getMultiple(&$cids) {
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function isEmpty() {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function set($cid, $data, $expire = CACHE_PERMANENT) {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user