Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
43893763
Commit
43893763
authored
Oct 06, 2008
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#226728
by chx and Eaton: Flush form caches when cache is cleared on cron.
parent
6560a820
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/system/system.module
modules/system/system.module
+5
-0
No files found.
modules/system/system.module
View file @
43893763
...
...
@@ -1412,6 +1412,11 @@ function system_cron() {
}
db_query
(
'DELETE FROM {files} WHERE fid = %d'
,
$file
->
fid
);
}
$core
=
array
(
'cache'
,
'cache_block'
,
'cache_filter'
,
'cache_page'
,
'cache_form'
,
'cache_menu'
);
$cache_tables
=
array_merge
(
module_invoke_all
(
'flush_caches'
),
$core
);
foreach
(
$cache_tables
as
$table
)
{
cache_clear_all
(
NULL
,
$table
);
}
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment