cnb / News_Manager-getsimplecms

A blog/news plugin for GetSimple CMS - development extended version
8 stars 10 forks source link

Optimization: read post file only once (full post page) #38

Closed cnb closed 10 years ago

cnb commented 11 years ago

The post data xml file could be read before rendering anything in the frontend (fulll post view, post=slug) and stored in a global variable. That global could then be used in:

cnb commented 11 years ago

For now, only store the post title in new var $NMPOSTTITLE Reuse in function _nm_posttitle 44c074ffa419ade77089343b169aba81bc2185b4

cnb commented 10 years ago

now using global array $nmvar 9415f9a0116f3492cd46dbbac7eb13154e887393