z_file_mtime (zotonic_core v1.0.0-rc.11)
Link to this section Summary
Functions
Convert process state when code is changed
Return the (universal) modification time of file, 0 on enoent
Invalidate all templates of a whole site
Initiates the server.
Insert a template and its dependencies
Check if a template is marked as modified
Mark a file as modified
Return the modification time of a file
Starts the server. IsScannerEnabled is set if inotify, fswatch or the periodic directory scanner is enabled. If not then the cached mtimes are periodically flushed.
Link to this section Functions
Link to this function
code_change(OldVsn, State, Extra)
Link to this function
file_mtime(File)
-spec file_mtime(file:filename_all()) -> calendar:datetime() | 0.
Link to this function
flush_site(Site)
Link to this function
handle_call(Message, From, State)
Link to this function
handle_cast(Message, State)
Link to this function
handle_info(Info, State)
Link to this function
init(_)
-spec init(list()) -> {ok, #state{}}.
Link to this function
insert_template(Module, CompileTime)
Link to this function
is_template_modified(Module, Site)
Link to this function
modified(File)
-spec modified(string() | binary()) -> ok.
Link to this function
mtime(File)
-spec mtime(file:filename_all()) -> {ok, calendar:datetime()} | {error, notfound}.
Link to this function
simplify(Path)
Link to this function
start_link()
-spec start_link() -> {ok, pid()} | {error, term()}.
Link to this function
start_link(IsScannerEnabled)
-spec start_link(boolean()) -> {ok, pid()} | {error, term()}.
Link to this function